package selfLearn.theList.oneWayList;

/**
 * 描述:
 *
 * @Package: selfLearn.theList.oneList
 * @ClassName: LinkListTest
 * @Author: 陈威
 * @CreateTime: 2022/1/27 13:43
 * @Description:
 */
public class LinkListTest {
    public static void main(String[] args) {
        LinkList<Integer> list = new LinkList<>();
        list.insert(5);
        list.insert(6);
        list.insert(7);
        list.insert(8);
        // System.out.println(list);
        //      list.insert(2,9);
      //  System.out.println(list);
/*        System.out.println(list.length());
        System.out.println(list.remove(2));

        //  System.out.println(list);

        //  list.insert(2,6);
        System.out.println(list);*/
        list.reverse();
        for (Integer integer : list) {
            System.out.print(integer+",");
        }
        System.out.println();
    }

}
